
//
//  UIColor + Extension.swift
//  SinaMicroBlogSwift2
//
//  Created by dqw on 15/8/9.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

extension UIColor {
    
    class func randomColor() -> UIColor  {
        
        return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: 1.0 )
    }
    
    class  private func randomValue() -> CGFloat {
        return CGFloat(arc4random_uniform(256))  / 255
    }
    
}